import request from "@/utils/common/request";

/**
 * 登录接口
 * @param {*} data  account password
 * @returns 
 */
export function loginApi(data) {
  return request({
    url: "/api/login",
    method: "post",
    data,
  });
}


/**
 * 
 * @param {*} data  account password
 * @returns 
 */
export function registerApi(data) {
  return request({
    url: "/api/register",
    method: "post",
    data,
  });
}